import uma from './uma';
import App from './App'
import uviewPlus from '@/uni_modules/uview-plus'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
Vue.use(uma)
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.use(uviewPlus, () => {
		return {
			options: {
				// 修改config对象的属性
				config: {
					// 默认字体图标自托管资源地址
					iconUrl: 'https://gamumu.hilumo.com/prod-api/files/down/1952687149834219520.ttf'
				}
			}
		}
	})
  // 配置 uma 埋点工具
  app.config.globalProperties.$uma = uma
  return {
    app
  }
}
// #endif